package com.note.common;


/**
 * Created by ADMIN on 2018/3/19.
 */
public class Const {

    public static final String CURRENT_USER = "currentUser";
    public static final String MESSAGE = "Message to RabbitMQ!";

    public interface Role {
        int ROLE_CUSTOMER = 0;//普通用户
        int ROLE_ADMIN = 1;//管理员
    }

    public enum ProductStatusEnum {
        ON_SALE(1, "在线");
        private String value;
        private int code;

        ProductStatusEnum(int code, String value) {
            this.code = code;
            this.value = value;
        }

        public String getValue() {
            return value;
        }

        public int getCode() {
            return code;
        }
    }
}
